/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package demo06;

import java.util.ArrayList;
import java.util.List;



/**
 *
 * @author 卢
 */
public class Person01Test {
    public static void main(String[] args) {
        Person01 p1 = new Person01("李四","0774-3216544","火星4");
        Person01 p2 = new Person01("李五","0775-3216544","火星5");
        Person01 p3 = new Person01("李六","0776-3216544","火星6");
     
        List list = new ArrayList();
        list.add(p1);
        list.add(p2);
        list.add(p3);
        
        System.out.println("Arraylist的元素是:");
        System.out.println(list);
                }
}
